package com.code.miaosha.service;

import com.code.miaosha.model.TGoodsInfo;

public interface GoodsService {

    void addGoods(TGoodsInfo info);

    void deleteGoods(String code);

    int getGoodsRest(String code);

    // 秒杀服务，修改库存
    boolean updateGoodsAmount(String code, int buys);
}
